GetBucketWebsite
Description
GetBucketWebsite operation is used to view the static website hosting status of Bucket.
Request Method
POST
Request Path
/apsara/route/OneRouter/GetBucketWebsite
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| IndexDocument | BODY | container | No | No sample value for this parameter. | parent element of child element Suffix. |
| Suffix | BODY | string | No | No sample value for this parameter. | the index file name added when returning the directory URL should not be empty or contain forward slashes (/). For example, if the index file is set to index.html, access. |
| regionId | BODY | string | Yes | No sample value for this parameter. | region id |
| WebsiteConfiguration | BODY | container | No | No sample value for this parameter. | the requested container. |
| version | BODY | string | No | 2016-01-01 | version of api |
| Key | BODY | string | No | No sample value for this parameter. | file name used when returning 404 error. |
| ErrorDocument | BODY | container | No | No sample value for this parameter. | parent of child key. |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}